import request from '@/utils/request'

// 查询客户购物金列表
export function listCustomerShop(query) {
  return request({
    url: '/mall/customerShop/list',
    method: 'get',
    params: query
  })
}

// 查询客户购物金详细
export function getCustomerShop(shopId) {
  return request({
    url: '/mall/customerShop/' + shopId,
    method: 'get'
  })
}

// 新增客户购物金
export function addCustomerShop(data) {
  return request({
    url: '/mall/customerShop',
    method: 'post',
    data: data
  })
}

// 修改客户购物金
export function updateCustomerShop(data) {
  return request({
    url: '/mall/customerShop',
    method: 'put',
    data: data
  })
}

// 删除客户购物金
export function delCustomerShop(shopId) {
  return request({
    url: '/mall/customerShop/' + shopId,
    method: 'delete'
  })
}
